package com.zhiyi.coco.service;

import com.zhiyi.coco.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserService {
    /**
     * 登录方法
     * @param user
     * @return
     */
    SysUser loginByUser(SysUser user);

    SysUser login(SysUser login);

    SysUser loginByCode(String loginCode, String pwd);

    List<SysUser> getAllUsers();

    SysUser getInfoById(Integer id);

    Integer deleteInfoById(Integer id);

    Integer updateimgbyid(Integer id);

    Integer updateByPrimaryKeySelective(SysUser user);

    Integer insertSelective(SysUser user);

    Integer updateuId(Integer id);
}